/*
 * @Autor: dingxiaolin
 * @Date: 2021-06-07 17:23:49
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-06-08 11:21:16
 */
import { generatorDynamicRouter } from '@/router/generator-routers'
import { storage } from '@/utils/Storage'

export const actions = {
    async generateRoutes({ commit }) {
        // 动态获取菜单
        const routers = await generatorDynamicRouter()
        commit('setRouters', routers)
        return routers
    }
}
